/** 招商模块 */
import {ask, request} from "./request";

// 工作台接口
export const mainMerchants = (data) => ask({
    url: '/miniapp/manage/business/index',
    data
})

// 渠道列表
export const channelList = (data) => ask({
    url: '/miniapp/manage/business/channel/list',
    data
})

// 渠道分类计数
export const channelCount = (data) => ask({
    url: '/channel/group_count',
    data
})

// 渠道详情
export const channelDetail = (data) => ask({
    url:'/channel/detail',
    data
})

// 渠道介绍客户列表
export const introduceClientList = (data) => ask({
    url: '/channel/list_customer',
    data
})
// 渠道下客户状态统计
export const channelCustomerStatus = (data) => ask({
    url: '/channel/customer_group_count',
    data
})
// 创建渠道
export const createChannel = (data) => ask({
    url: '/channel/create',
    data
})
// 编辑渠道
export const editChannel = (data) => ask({
    url: '/channel/update',
    data
})

// 删除渠道
export const deleteChannelInfo = (data) => ask({
    url: '/channel/delete',
    data
})

// 渠道状态统计
export const channelUserStatic = (data) => ask({
    url: '/channel/group_count',
    data
})

// 渠道联系人列表
export const channelContactList = (data) => ask({
    url: '/channel/list_contact',
    data
})
// 删除渠道联系人
export const deleteChannelContact = (data) => ask({
    url: '/channel/delete_contact',
    data
})
// 添加渠道联系人
export const createChannelContact = (data) => ask({
    url: '/channel/create_contact',
    data
})
// 更新渠道联系人
export const updateChannelContact = (data) => ask({
    url: '/channel/update_contact',
    data
})
//对接人接口
export const getZsUserList = (data) => ask({
    url: '/system/user/get_business_company_user',
    data
})
//  线索池列表
export const clueList = (data:any) => ask({
    url:'/miniapp/manage/business/clue/list',
    data
	})

// 客户管理--客户列表
export const customerList  = (params:any) => ask({
    url:'/miniapp/manage/business/customer/list',
    data:params,
    method:'post'
})

// 客户管理--客户分类统计
export const customerCount  = (params:any) => ask({
    url:'/miniapp/manage/business/customer/group_count',
    data:params,
    method:'post'
})

// 客户管理--客户详情
export const customerDetail  = (params:any) => ask({
    url:'/miniapp/manage/business/customer/detail',
    data:params,
    method:'post'
})
// 线索池 -  行业
export const allDictDataList  = (params:any) => ask({
    url:'/option/all_dict_data_list',
    data:params,
    method:'post'
})
// 线索池 -  创建
export const createdCluespool  = (params:any) => ask({
    url:'/clue_pool/create',
    data:params,
    method:'post'
})
// 线索池 -  详情
export const cluesDetail  = (params:any) => ask({
    url:'/clue_pool/detail',
    data:params,
    method:'post'
})
// 线索池 -  操作记录
export const listOperation  = (params:any) => ask({
    url:'/clue_pool/list_operation',
    data:params,
    method:'post'
})
// 线索池 -  操作记录
export const modifyStatusSubmit  = (params:any) => ask({
    url:'/clue_pool/modify_status',
    data:params,
    method:'post'
})


//房源详情
export const hourseDetail  = (params:any) => ask({
    url:'/building/detail',
    data:params,
    method:'post'
})
// 客户管理 -- 更新客户推荐房源
export const updateRecommandHourse  = (params:any) => ask({
    url:'/customer/update_building',
    data:params,
    method:'post'
})
// 客户管理 -- 查看客户操作记录
export const customerOperateRecord  = (params:any) => ask({
    url:'/customer/list_follow',
    data:params,
    method:'post'
})

// 客户管理 -- 添加跟进记录
export const addFollowRecord  = (params:any) => ask({
    url:'/customer/modify_status',
    data:params,
    method:'post'
})

// 创建客户
export const createdCustomer  = (params:any) => ask({
    url: '/customer/create',
    data:params
})
// 更新客户
export const updateCustomer  = (params:any) => ask({
    url: '/customer/update',
    data:params
})
// 线索池-添加跟进记录
export const createFollow  = (params:any) => ask({
    url: '/clue_pool/create_follow',
    data:params
})
// 线索池-添加跟进记录list
export const followList  = (params:any) => ask({
    url: '/clue_pool/list_follow',
    data:params
})

// 房源列表
export const getClientHouseList  = (params:any) => ask({
    url: '/miniapp/manage/business/building/list',
    data: params
})

// 房源查询区域
export const houseCheckArea = (params: any) => ask({
    url: '/miniapp/manage/business/building/area',
    data: params
})


// 线索池  统计
export const clueGroupCount = (params: any) => ask({
    url: '/miniapp/manage/business/clue/group_count',
    data: params
})
// 房源查询项目
export const houseAndProject = (data:any) => ask({
    url: '/miniapp/manage/business/building/community_list',
    data
})

// 交付标准
export const deliveryStandard = (data: any) => ask({
    url:'/miniapp/manage/business/building/submit_list',
    data
})

// 关注点
export const getConcerns = (data: any) => ask({
    url: '/option/all_dict_data_list',
    data
})